package com.xqx.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * @author：xingquanxiang createTime：2019/10/23 22:15
 * description:
 */
public class ConfigUtils {
    private String configPropertiesPath;
    private static Properties properties = null;
    static {
        properties = new Properties();
        try {
            properties.load(ConfigUtils.class.getClassLoader().getResourceAsStream("config.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void setConfigPropertiesPath(String configPropertiesPath) {
        this.configPropertiesPath = configPropertiesPath;
    }

    public static Properties getProperties() {
        return properties;
    }
}
